<?php
/** .-------------------------------------------------------------------
 * |      Site: www.hdcms.com  www.houdunren.com
 * |      Date: 2018/7/2 上午12:54
 * |    Author: 向军大叔 <2300071698@qq.com>
 * '-------------------------------------------------------------------*/
/**
 * 权限配置
 * 为了避免其他模块有同名的权限，权限标识要以 '控制器@方法' 开始
 */
return [
    [
        'group' => '用户管理',
        'permissions' => [
            ['title' => '添加用户', 'name' => 'Modules\Admin\Http\Controllers\AdminUserController@create', 'guard' => 'admin'],
			['title' => '编辑用户', 'name' => 'Modules\Admin\Http\Controllers\AdminUserController@edit', 'guard' => 'admin'],
			['title' => '查看用户', 'name' => 'Modules\Admin\Http\Controllers\AdminUserController@index', 'guard' => 'admin'],
			['title' => '删除用户', 'name' => 'Modules\Admin\Http\Controllers\AdminUserController@destroy', 'guard' => 'admin'],
			['title' => '查看角色', 'name' => 'Modules\Admin\Http\Controllers\AdminUserController@showrole', 'guard' => 'admin'],
			['title' => '分配角色', 'name' => 'Modules\Admin\Http\Controllers\AdminUserController@addrole', 'guard' => 'admin'],
        ],

    ],
	[
		'group' => '角色管理',
		'permissions' => [
			['title' => '添加角色', 'name' => 'Modules\Admin\Http\Controllers\RoleController@create', 'guard' => 'admin'],
			['title' => '编辑角色', 'name' => 'Modules\Admin\Http\Controllers\RoleController@edit', 'guard' => 'admin'],
			['title' => '查看角色', 'name' => 'Modules\Admin\Http\Controllers\RoleController@index', 'guard' => 'admin'],
			['title' => '删除角色', 'name' => 'Modules\Admin\Http\Controllers\RoleController@destroy', 'guard' => 'admin'],
			['title' => '查看权限', 'name' => 'Modules\Admin\Http\Controllers\RoleController@showpermission', 'guard' => 'admin'],
			['title' => '分配权限', 'name' => 'Modules\Admin\Http\Controllers\RoleController@addpermission', 'guard' => 'admin'],

		],
	],
	[
		'group' => '模块管理',
		'permissions' => [
			['title' => '更新模块列表', 'name' => 'Modules\Admin\Http\Controllers\ModuleController@updateCache', 'guard' => 'admin'],
			['title' => '设置使用模块', 'name' => 'Modules\Admin\Http\Controllers\ModuleController@setDefaultModule', 'guard' => 'admin'],
			['title' => '查看模块列表', 'name' => 'Modules\Admin\Http\Controllers\ModuleController@index', 'guard' => 'admin']
		],
	],
	[
		'group' => '模板管理',
		'permissions' => [
			['title' => '查看模板列表', 'name' => 'Modules\Admin\Http\Controllers\TemplateController@index', 'guard' => 'admin'],
			['title' => '设置使用模板', 'name' => 'Modules\Admin\Http\Controllers\TemplateController@setDefaultTemplate', 'guard' => 'admin']
		],
	]
];
